import ylTypeText from "./ylTypeText.vue";
import ylTypeBarcode from "./ylTypeBarcode.vue";
import ylTypeQrcode from "./ylTypeQrcode.vue";
import ylTypeImage from "./ylTypeImage.vue";
import ylTypeView from "./ylTypeView.vue";


const install = function (Vue) {
  Vue.component(ylTypeView.name, ylTypeView)
  Vue.component(ylTypeText.name, ylTypeText)
  Vue.component(ylTypeBarcode.name, ylTypeBarcode)
  Vue.component(ylTypeQrcode.name, ylTypeQrcode)
  Vue.component(ylTypeImage.name, ylTypeImage)
}


const getWidgetsSetting = function () {
  return {
    [ylTypeView.name]: ylTypeView.setting,
    [ylTypeText.name]: ylTypeText.setting,
    [ylTypeBarcode.name]: ylTypeBarcode.setting,
    [ylTypeQrcode.name]: ylTypeQrcode.setting,
    [ylTypeImage.name]: ylTypeImage.setting,
  }
}
export default {
  install,
  getWidgetsSetting
}
